var fs = require('fs');

module.exports.setRenders = function (app) {
	app.get('/', function(req,res) {
		console.log("Busco home page en: " + __dirname + '/../views/index.html');
	    fs.readFile(__dirname + '/../views/index.html', 'utf8', function(err, text){
	        res.send(text);
	    });
	});

	app.get('/categories/wikimapiaCategoriesList', function(req,res) {
		console.log("Busco page en: " + __dirname + '/../views/categories/wikimapiaCategories.html');
	    fs.readFile(__dirname + '/../views/categories/wikimapiaCategories.html', 'utf8', function(err, text){
	        res.send(text);
	    });
	});
}